<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>两列式布局</title>
    <style>
        *{
            margin:0;
            padding:0;
        }
        .container{
            /* display:flex; */
        }
        .aside, .main{
            height:300px;
        }
        .aside{
            /* float:right; */
            float:left;
            width:300px;
            background-color: green;
        }
        .main{
            /* flex:1; */
            background-color: red;
            /*float:left;
            width:calc(100%-300px);*/
            /* margin-right:300px; */
            overflow:hidden; 
        }
    </style>
</head>
<body>
    <!--设计一套布局 两列式布局 aside 300px 剩下的交给mian
        侧边栏固定  主栏宽度自适应-->
   <div class="container">
       <aside class="aside"></aside>
       <main class="main"></main>
   </div> 
</body>
</html>